package com.kdd.campus.common.entity;

import lombok.Data;

/**
 * @Auther: fcp
 * @Date: 2020/1/31 13:19
 * @Description:
 */
@Data
public class FastDFSFile {

    // 文件名
    private String name;
    // 文件内容
    private byte[] content;

    // 文件扩展名
    private String ext;

    // 文件MD5摘要值
    private String md5;

    // 文件创建者
    private String author;

    public FastDFSFile(String name, byte[] content, String ext, String md5, String author) {
        this.name = name;
        this.content = content;
        this.ext = ext;
        this.md5 = md5;
        this.author = author;
    }

    public FastDFSFile(String name, byte[] content, String ext) {
        this.name = name;
        this.content = content;
        this.ext = ext;
    }

}
